/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * pantallaabmclientes.java
 *
 * Created on 13/05/2011, 09:03:16
 */

package interfacesGraficas;

import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JInternalFrame;
import javax.swing.JRadioButton;
import javax.swing.JTable;
import javax.swing.JTextField;

/**
 *
 * @author eduardo
 */
public class PantallaABMClientes extends JInternalFrame {

    /** Creates new form pantallaabmclientes */
    public PantallaABMClientes() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        groupBuscaCliente = new javax.swing.ButtonGroup();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        campoapellidoynombre = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        campodireccion = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        camponrocliente = new javax.swing.JTextField();
        campotelefono = new javax.swing.JTextField();
        campocelular = new javax.swing.JTextField();
        campoemail = new javax.swing.JTextField();
        botonguardarcliente = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        combolocalidad = new javax.swing.JComboBox();
        jPanel2 = new javax.swing.JPanel();
        RadioBtnCodigo = new javax.swing.JRadioButton();
        RadioBtnNombre = new javax.swing.JRadioButton();
        campobuscacodigo = new javax.swing.JTextField();
        campoBuscaNombreCliente = new javax.swing.JTextField();
        botonbuscaClientes = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        tablaclientes = new javax.swing.JTable();
        jSeparator2 = new javax.swing.JSeparator();
        jToolBar1 = new javax.swing.JToolBar();
        botonnuevocliente = new javax.swing.JButton();
        botonactualizar = new javax.swing.JButton();
        botoneliminar = new javax.swing.JButton();
        botonNuevaLocalidad = new javax.swing.JButton();
        botonNuevaZona = new javax.swing.JButton();
        botonimprimir = new javax.swing.JButton();
        botonsalir = new javax.swing.JButton();

        setBorder(javax.swing.BorderFactory.createEtchedBorder());
        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Ingresar Cliente"));
        jPanel1.setLayout(new java.awt.GridBagLayout());

        jLabel1.setText("Nombre:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.ipadx = 10;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(13, 50, 0, 0);
        jPanel1.add(jLabel1, gridBagConstraints);

        campoapellidoynombre.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.ipadx = 150;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 0);
        jPanel1.add(campoapellidoynombre, gridBagConstraints);

        jLabel2.setText("Dirección:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.ipadx = 10;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(13, 50, 0, 0);
        jPanel1.add(jLabel2, gridBagConstraints);

        campodireccion.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.ipadx = 150;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 0);
        jPanel1.add(campodireccion, gridBagConstraints);

        jLabel3.setText("Teléfono:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.ipadx = 10;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(13, 50, 0, 0);
        jPanel1.add(jLabel3, gridBagConstraints);

        jLabel4.setText("Celular:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.ipadx = 10;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(13, 50, 0, 0);
        jPanel1.add(jLabel4, gridBagConstraints);

        jLabel5.setText("E-mail:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.ipadx = 10;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(13, 50, 0, 0);
        jPanel1.add(jLabel5, gridBagConstraints);

        jLabel6.setText("Nro Cliente:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 10;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(13, 50, 0, 0);
        jPanel1.add(jLabel6, gridBagConstraints);

        camponrocliente.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 86;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 0);
        jPanel1.add(camponrocliente, gridBagConstraints);

        campotelefono.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.ipadx = 123;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 0);
        jPanel1.add(campotelefono, gridBagConstraints);

        campocelular.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.ipadx = 123;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 0);
        jPanel1.add(campocelular, gridBagConstraints);

        campoemail.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.ipadx = 123;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 0);
        jPanel1.add(campoemail, gridBagConstraints);

        botonguardarcliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/save-20.png"))); // NOI18N
        botonguardarcliente.setText("Guardar");
        botonguardarcliente.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.gridwidth = 9;
        gridBagConstraints.ipadx = 39;
        gridBagConstraints.ipady = 3;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(20, 80, 0, 10);
        jPanel1.add(botonguardarcliente, gridBagConstraints);

        jLabel7.setText("Localidad:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(15, 50, 0, 0);
        jPanel1.add(jLabel7, gridBagConstraints);

        combolocalidad.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        combolocalidad.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.ipadx = 50;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 0);
        jPanel1.add(combolocalidad, gridBagConstraints);

        getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 60, 380, 350));

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar Clientes"));
        jPanel2.setLayout(new java.awt.GridBagLayout());

        groupBuscaCliente.add(RadioBtnCodigo);
        RadioBtnCodigo.setSelected(true);
        RadioBtnCodigo.setText("Código Cliente");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(40, 20, 0, 0);
        jPanel2.add(RadioBtnCodigo, gridBagConstraints);

        groupBuscaCliente.add(RadioBtnNombre);
        RadioBtnNombre.setText("Nombre Cliente");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(8, 20, 0, 0);
        jPanel2.add(RadioBtnNombre, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 154;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(40, 6, 0, 0);
        jPanel2.add(campobuscacodigo, gridBagConstraints);

        campoBuscaNombreCliente.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.ipadx = 154;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(8, 6, 0, 0);
        jPanel2.add(campoBuscaNombreCliente, gridBagConstraints);

        botonbuscaClientes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/edit-find.png"))); // NOI18N
        botonbuscaClientes.setText("Buscar");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.ipadx = 29;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(8, 20, 0, 0);
        jPanel2.add(botonbuscaClientes, gridBagConstraints);

        tablaclientes.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(tablaclientes);
        tablaclientes.getAccessibleContext().setAccessibleParent(jPanel1);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.gridwidth = 8;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.ipadx = 431;
        gridBagConstraints.ipady = 287;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(50, 41, 0, 56);
        jPanel2.add(jScrollPane1, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.gridwidth = 8;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.ipadx = 10;
        gridBagConstraints.ipady = 10;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(20, 0, 0, 0);
        jPanel2.add(jSeparator2, gridBagConstraints);

        getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 60, 580, 480));

        jToolBar1.setRollover(true);

        botonnuevocliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/proveedor-30.png"))); // NOI18N
        botonnuevocliente.setToolTipText("Nuevo Cliente\n");
        botonnuevocliente.setFocusable(false);
        botonnuevocliente.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonnuevocliente.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonnuevocliente);

        botonactualizar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/document_pencil_30.png"))); // NOI18N
        botonactualizar.setToolTipText("Actualizar Cliente");
        botonactualizar.setFocusable(false);
        botonactualizar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonactualizar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonactualizar);

        botoneliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/user-trash-30.png"))); // NOI18N
        botoneliminar.setToolTipText("Eliminar Cliente");
        botoneliminar.setFocusable(false);
        botoneliminar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botoneliminar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botoneliminar);

        botonNuevaLocalidad.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Combo-Box-30.png"))); // NOI18N
        botonNuevaLocalidad.setToolTipText("Nueva Localidad");
        botonNuevaLocalidad.setFocusable(false);
        botonNuevaLocalidad.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonNuevaLocalidad.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonNuevaLocalidad);

        botonNuevaZona.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/earth40.png"))); // NOI18N
        botonNuevaZona.setToolTipText("Nueva Zona");
        botonNuevaZona.setFocusable(false);
        botonNuevaZona.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonNuevaZona.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonNuevaZona);

        botonimprimir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Printer-30.png"))); // NOI18N
        botonimprimir.setToolTipText("Imprimir ");
        botonimprimir.setFocusable(false);
        botonimprimir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonimprimir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonimprimir);

        botonsalir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Log-out-30.png"))); // NOI18N
        botonsalir.setToolTipText("Salir");
        botonsalir.setFocusable(false);
        botonsalir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonsalir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonsalir);

        getContentPane().add(jToolBar1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1040, 40));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
   /* public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new PantallaABMClientes().setVisible(true);
            }
        });
    }
*/
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JRadioButton RadioBtnCodigo;
    private javax.swing.JRadioButton RadioBtnNombre;
    private javax.swing.JButton botonNuevaLocalidad;
    private javax.swing.JButton botonNuevaZona;
    private javax.swing.JButton botonactualizar;
    private javax.swing.JButton botonbuscaClientes;
    private javax.swing.JButton botoneliminar;
    private javax.swing.JButton botonguardarcliente;
    private javax.swing.JButton botonimprimir;
    private javax.swing.JButton botonnuevocliente;
    private javax.swing.JButton botonsalir;
    private javax.swing.JTextField campoBuscaNombreCliente;
    private javax.swing.JTextField campoapellidoynombre;
    private javax.swing.JTextField campobuscacodigo;
    private javax.swing.JTextField campocelular;
    private javax.swing.JTextField campodireccion;
    private javax.swing.JTextField campoemail;
    private javax.swing.JTextField camponrocliente;
    private javax.swing.JTextField campotelefono;
    private javax.swing.JComboBox combolocalidad;
    private javax.swing.ButtonGroup groupBuscaCliente;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JTable tablaclientes;
    // End of variables declaration//GEN-END:variables

    public JButton getBotonactualizar() {
        return botonactualizar;
    }

    public JButton getBotoneliminar() {
        return botoneliminar;
    }

    public JButton getBotonimprimir() {
        return botonimprimir;
    }

    public JButton getBotonnuevocliente() {
        return botonnuevocliente;
    }

    public JButton getBotonsalir() {
        return botonsalir;
    }

    public JComboBox getCombolocalidad() {
        return combolocalidad;
    }

    public JRadioButton getRadioBtnCodigo() {
        return RadioBtnCodigo;
    }

    public JRadioButton getRadioBtnNombre() {
        return RadioBtnNombre;
    }

    public ButtonGroup getGroupBuscaCliente() {
        return groupBuscaCliente;
    }

    public JTextField getCampoBuscaNombreCliente() {
        return campoBuscaNombreCliente;
    }

    public JTextField getCampobuscacodigo() {
        return campobuscacodigo;
    }

    public JButton getBotonbuscaClientes() {
        return botonbuscaClientes;
    }

    public JButton getBotonNuevaLocalidad() {
        return botonNuevaLocalidad;
    }

    public void setBotonNuevaLocalidad(JButton botonNuevaLocalidad) {
        this.botonNuevaLocalidad = botonNuevaLocalidad;
    }

    public JButton getBotonNuevaZona() {
        return botonNuevaZona;
    }

    public void setBotonNuevaZona(JButton botonNuevaZona) {
        this.botonNuevaZona = botonNuevaZona;
    }
    // End of variables declaration


    

    public JTextField getNroCliente(){
        return camponrocliente;
    }

    public JTextField getDireccion(){
        return campodireccion;
    }

    public JTextField getCelular(){
        return campocelular;
    }

    public JTextField getTelefono(){
        return campotelefono;
    }

    public JTextField getNombreCliente(){
        return campoapellidoynombre;
    }

    public JTextField getEmail(){
        return campoemail;
    }

    public JButton getGuardarCliente(){
        return botonguardarcliente;
    }

    public JButton getBuscarClientes(){
        return botonbuscaClientes;
    }

    

    public JTextField getbuscaxcodigo(){
        return campobuscacodigo;
    }

    public JTextField getbuscaxnombre(){
        return campoBuscaNombreCliente;
    }

    public JTable getTablaClientes(){
        return tablaclientes;
    }

}
